#ifndef __INVADER_BULLET_H__
#define __INVADER_BULLET_H__

#include <QLabel>

class QMovie;

/**
 * An Invaders bullet animation
 */
class InvaderBullet : public QLabel
{
  Q_OBJECT

public:
  /**
   * The types of bullets
   */
  typedef enum { BulletTypeOne = 0, BulletTypeTwo = 1 } BulletType;

  /**
   * @param type the type of bullet this on is
   * @param parent parent of this InvaderBullet
   */
  InvaderBullet (BulletType type, QWidget *parent = 0);

public slots:
  /**
   * Advances the bullet animation to the next frame
   */
  void advanceFrame ();

private:
  QMovie *_movie;
};

#endif
